package com.example.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础实体类
 *
 * @author renliang
 */
@Getter
@Setter
@ToString
public abstract class BaseEntity<T extends BaseEntity<?>> extends Model<T> implements Serializable {

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private String remark;

    @JsonIgnore
    @TableField(exist = false)
    private String keywords;
}
